class HomePageModel {
  int code;
  Data data;
  String msg;

  HomePageModel({this.code, this.data, this.msg});

  HomePageModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    data['msg'] = this.msg;
    return data;
  }
}

class Data {
  List<Items> items;

  Data({this.items});

  Data.fromJson(Map<String, dynamic> json) {
    if (json['items'] != null) {
      items = new List<Items>();
      json['items'].forEach((v) {
        items.add(new Items.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.items != null) {
      data['items'] = this.items.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Items {
  String desc;
  String imageUrl;
  String name;
  String type;
  String point;

  Items({this.desc, this.imageUrl, this.name, this.type,this.point});

  Items.fromJson(Map<String, dynamic> json) {
    desc = json['desc'];
    imageUrl = json['imageUrl'];
    name = json['name'];
    type = json['type'];
    point = json['point'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['desc'] = this.desc;
    data['imageUrl'] = this.imageUrl;
    data['name'] = this.name;
    data['type'] = this.type;
    data['point'] = this.point;
    return data;
  }
}